package com.sskj.bibi.presenter;

import com.sskj.bibi.bean.RecordDetailBean;
import com.sskj.bibi.ui.activity.RecordDetailActivity;
import com.sskj.common.base.HttpData;
import com.sskj.lib.http.CallBackOption;


public class RecordDetailActivityPresenter extends BasePresenter<RecordDetailActivity> {

    public void getData(String id, String tradeType) {
        httpService.getRecordDetail(id, tradeType)
                .execute(new CallBackOption<HttpData<RecordDetailBean>>() {
                }.loadBind(mView)
                .execute(httpData-> mView.updateUI(httpData.getData())));
    }
}
